package com.wao.product.repository;

import com.wao.product.domain.Product;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;


/**
 * Spring Data JPA repository for the Product entity.
 */
@SuppressWarnings("unused")
@Repository
public interface ProductRepository extends JpaRepository<Product, Long> {

    Page<Product> findByBrandCategoryId(Long categoryId, Pageable pageable);

    Page<Product> findByCategoryId(Long categoryId, Pageable pageable);
}
